package cn.admin.configcenter.registry.common.event;

import java.util.List;

public abstract class EventListener {

    public EventListener() {
        EventDispatcher.addEventListener(this);
    }

    public abstract List<Class<? extends Event>> interest();

    public abstract void onEvent(Event event);

}
